#pragma once

class CMainWnd
{
	friend class CAppClient;
public:
	bool	IsActive()const;
	void	Show(bool bShow);
	HWND	GetHwnd()const;

public:
	CMainWnd(CAppClient* pHandler, HWND hWnd);
	CMainWnd(CAppClient* pHandler, HINSTANCE hInstance, int nWidth, int nHeight,const TCHAR* szTitle, const TCHAR* szBigIconFileName, const TCHAR* szSmallIconFileName);
	~CMainWnd();
	static LRESULT CALLBACK WndProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam);
	static ATOM RegisterClass(HINSTANCE hInstance, HICON hBigIcon, HICON hSmallIcon);
	LRESULT OnWndMessage(UINT uMsg, WPARAM wParam, LPARAM lParam);

private:
	CAppClient*		m_pHandler;
	HICON			m_hIconSmall;
	HICON			m_hIconBig;

	HWND			m_hMainWnd;

	bool			m_bActive;
	BOOL			m_bFullWindow;
	float			m_fWndRatio;
	bool			m_bNeedTrackMouseEvent;

};